import request from '@/utils/request'

// 获取验证码接口
export const captcha = (params) =>
  request({ url: '/auth/captcha', method: 'get', params })
// 登录
export const codeLogin = (data) =>
  request({ url: '/auth/codeLogin', method: 'post', data })
// 获取用户信息
export const getUserInfo = (data) =>
  request({ url: '/auth/getUserInfo', method: 'post', data })
// 退出登录
export const logout = (data) =>
  request({ url: '/auth/logout', method: 'post', data })
// 获取用户信息
export const updateExpireTime = (data) =>
  request({ url: '/auth/updateExpireTime', method: 'post', data })
